<template>
  <div class="footer">
    <div class="item">
      <router-link to="/home" class="nav_item" active-class="nav_color">
        <van-icon name="wap-home-o" size="25"/>
        <!--<van-icon name="wap-home" size="25"/>-->
        首页
      </router-link>
    </div>
    <div class="item">
      <router-link to="/cart" class="nav_item" active-class="nav_color">
        <van-icon name="shopping-cart-o" size="25"/>
        <!--<van-icon name="cart" size="25"/>-->
        购物车
      </router-link>
    </div>
    <div class="item">
      <router-link to="/order" class="nav_item" active-class="nav_color">
        <van-icon name="orders-o" size="25"/>
        订单
      </router-link>
    </div>
    <div class="item">
      <router-link to="/mine" class="nav_item" active-class="nav_color">
        <van-icon name="contact"  size="25"/>
        我的
      </router-link>
    </div>
  </div>
</template>

<script>
export default {
  name: "FooterNav"
}
</script>

<style lang="less" scoped>
  .footer{
    display: flex;
    font-size: 30px;
    font-weight: 600;
    background-color: #fff;
    border-top: 0.5px solid #eee;
    .item{
      flex: 1;
      justify-content: center;
      .nav_color{
        color: #ffc400;
      }
      .nav_item{
        display: flex;
        flex-flow: column;
        align-items: center;
      }
    }
  }
</style>